import request from "../config/axios";
import Mock from "mockjs";
let dsData = Mock.mock(
    {
    "tableData|10":[
        {
            // 部门架构数据
            "id|+1": 1,
            "idFront|+1": 0,
            department: "@cword(3)",
            principal: "@cname",
            telephone: "@natural(10000000000, 99999999999)",
            // 岗位职称数据
            post: "@cword(3)",
            permission:'@cword(3, 5)',
            remark:'@csentence()',
            "price|1-100":100,
            state:'@ctitle',


            "children|3-4": [
                {
                    "id|+1": 11,
                    "idFront|+1": 100,
                    department: "@cword(3)",
                    principal: "@cname",
                    telephone: "@natural(10000000000, 99999999999)",
                }
            ]
        },
        
    ]
    

},
)
//登陆信息
export const dsDataGet = (data) => request({
    url: "/wuxianlogin",
    method: "get",
    data
})
Mock.mock("/wuxianlogin", config => {
    return {
        dsData,
        code: 200
    }
})